package com.ktwlsoft.archivemanage.domain.dao.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Size;


 /**
  * department--部门
  *
  * @author zhuhe on 2019-10-24 14:19:40
  * @version 1.0
  */
@ApiModel("department--部门-Department")
@Getter
@Setter
public class Department extends BaseEntity {
	
    /**部门名称**/
    @ApiModelProperty("部门名称")
    @Size(max = 30, message = "部门名称参数超长")
    private String department;

    /**状态(NORMAL(正常), DELETED(删除), FORBIDDEN(禁用))**/
    @ApiModelProperty("状态(NORMAL(正常), DELETED(删除), FORBIDDEN(禁用))")
    private State state;

    public enum State{
        /**正常*/
        NORMAL,
        /**删除*/
        DELETED,
        /**禁用*/
        FORBIDDEN
    }
}
